package com.vc.videosdk.interfaces

import org.java_websocket.handshake.ServerHandshake
import java.nio.ByteBuffer

/**

 * @Author : wy

 * @Time : On 2024/9/14 17:13

 * @Description : PreviewConnectListener

 */
interface PreviewConnectListener {
    fun onOpen(handshakedata: ServerHandshake)
    fun onRecMessage(message: String)
    fun onClose(code: Int, reason: String, remote: Boolean)
    fun onError(ex: Exception)
    fun onMessage(bytes: ByteBuffer)
}